<?php
/**
 * Class to handle H1-H6 tags
 *
 * @author		Joachim Ruf, Loresoft Software (http://www.loresoft.de)
 * @license		New BSD License
 * @version		Class for Bootstrap v2.3.2
 *
 * */


Class Bootstrap_Heading_Handler
{


	/**
	 *
	 * */
	function __construct () {

	}


	private function getParameter (array $_arrParam) {
		$result	= NULL;

		if (count($_arrParam)) {
			foreach ($_arrParam as $key => $val) {
				$result	.= ' '.$key.'="'.$val.'"';
			}
		}

		return $result;
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH1 ($_content, array $_arrParam = array()) {
		return '<h1'.$this->getParameter($_arrParam).'>'.$_content.'</h1>';
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH2 ($_content, array $_arrParam = array()) {
		return '<h2'.$this->getParameter($_arrParam).'>'.$_content.'</h2>';
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH3 ($_content, array $_arrParam = array()) {
		return '<h3'.$this->getParameter($_arrParam).'>'.$_content.'</h3>';
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH4 ($_content, array $_arrParam = array()) {
		return '<h4'.$this->getParameter($_arrParam).'>'.$_content.'</h4>';
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH5 ($_content, array $_arrParam = array()) {
		return '<h5'.$this->getParameter($_arrParam).'>'.$_content.'</h5>';
	}


	/**
	 * @param string $_content
	 * @return string
	 * */
	public function getH6 ($_content, array $_arrParam = array()) {
		return '<h6'.$this->getParameter($_arrParam).'>'.$_content.'</h6>';
	}




}


?>